
VER=VER
yum install -y flex bison

install_cmake(){
    wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
    tar zxvf cmake-3.*
    cd cmake-3.*
    ./bootstrap --prefix=/usr/local
    make -j$(nproc)
    make install
}

wget https://github.com/fluent/fluent-bit/archive/refs/tags/vVER.tar.gz
tar xf vVER.tar.gz
cd fluent-bit-VER/build
cmake ..
make install